#define  _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

int mystrcmp(const char *str1, const char *str2) {
	assert(str1 != 0);
	assert(str2 != 0);
	while ((*str1++ == *str2++) && (*str1 != '\0')) {
		;
	}
	return *str1 - *str2;
}

int main() {
	const char *arr1 = "abcd";
	const char *arr2 = "abcdef";
	int ret = mystrcmp(arr1, arr2);
	printf("%d", ret);
	return 0;
}